using Core.Domain.Entities;
using FluentNHibernate.Mapping;

namespace DataMain.Mappings
{
  public class VoteRecipientMap : ClassMap<VoteRecipient>
  {
    public VoteRecipientMap()
    {
      Id(x => x.Id);
      Map(x => x.VoteeId).WithLengthOf(250);
      Map(x => x.VotesReceived);
      References(x => x.InElection);
    }
  }
}